package com.example.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "用户书籍收藏", description = "用于保存用户收藏了哪些书籍")
public class BooksLike {
    /*编号*/
    @ApiModelProperty(value = "id", example = "1")
    private Integer id;
    /*用户编号*/
    @ApiModelProperty(value = "uid与user表中的id相对应", example = "1")
    private Integer uid;
    /*书籍编号*/
    @ApiModelProperty(value = "收藏的书籍编号与books表中的id相对应", example = "1")
    private Integer bid;
    /*用户名*/
    @ApiModelProperty(value = "收藏书籍的用户名字", example = "刘思琪")
    private String username;
    /*书籍名*/
    @ApiModelProperty(value = "被收藏的书籍名字", example = "唐宋词人年谱")
    private String name;
    @ApiModelProperty(value ="书籍的描述", example = "全书共分十篇，50余万字，考订十二位地位重要而未有年谱或相关记载极少的唐宋词人")
    private String detail;
    @ApiModelProperty(value = "书籍的封面图片", example = "http://47.96.160.116:9090/files/1722232278992-唐宋词人年谱.png")
    private String img;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

}
